
Ext.define("OrderConvert.view.order.PdfGrid",{
    extend: "Ext.grid.Panel",

    xtype:'pdfgrid',

    requires: [
        "OrderConvert.view.order.PdfGridController",
        "OrderConvert.view.order.PdfGridModel",
        "OrderConvert.view.order.WatchOrderWin"
    ],

    controller: "order-pdfgrid",
    viewModel: {
        type: "order-pdfgrid"
    },

    tbar : {
        xtype : 'toolbar',
        items : ['->',{
            iconCls : 'x-fa fa-eye',
            text : '预览',
            handler : 'preview'
        },{
            text : '导出',
            iconCls : 'x-fa fa-file-pdf-o',
            handler : 'export'
        },{
            text : '删除',
            iconCls : 'x-fa fa-trash',
            handler : 'delete'
        }]
    },

    bind: '{store}',


    columns : [
        { text: '编号', dataIndex: 'orderCode', flex: 1 },
        { text: '订单编号', dataIndex: 'orderCode', flex: 1 },
        { text: '订单名称', dataIndex: 'orderName', flex: 1 },
        { text: '上传人', dataIndex: 'createBy', flex: 1 },
        { text: '上传时间', dataIndex: 'createTime', flex: 1 }
    ],

    dockedItems: [{
        xtype: 'pagingtoolbar',
        bind: {
            store: '{store}'
        },
        dock: 'bottom',
        displayInfo: true
    }]
});
